Emit a warning when manifest specifies empty dependency constraints
authorFelix Crux <felixc@felixcrux.com>
Mon, 11 Jan 2016 16:08:20 +0000 (11:08 -0500)
committerFelix Crux <felixc@felixcrux.com>
Wed, 20 Jan 2016 03:43:29 +0000 (22:43 -0500)
commit1e985cc83f85a599a295428f704d01dbc132c5be
tree022472e7822adeee8449e612e2635ef499bae6ef
parent2cb4e910f967571cc0be1b34fef0a5e56ab9704d
Emit a warning when manifest specifies empty dependency constraints

This warns when encountering dependencies of either of these forms:

  [dependencies]
  foo = {}

and

  [dependencies.foo]

(with nothing further provided).

In the future, this should likely become a hard error.
src/cargo/util/toml.rs
tests/test_bad_config.rs